/**
 * 
 */
package model;

/**
 * @author yuqi
 *
 */
public class Dessert {
	private int id;
	private String name;
	private double price;
	private double discount;
	private String type_name;
	private String description;
	
	/**
	 * use to do select
	 * @param id
	 * @param name
	 * @param price
	 * @param type_name
	 * @param description
	 */
	public Dessert(int id,String name, double price,double discount, String type_name , String description){
		this.id = id;
		this.name = name;
		this.price = price;
		this.setDiscount(discount);
		this.type_name = type_name;
		this.description = description;
	}
	
	/**
	 * use to do insert
	 * @param name
	 * @param price
	 * @param type_name
	 * @param description
	 */
	public Dessert(String name, double price,double discout,String type_name , String description){
		this.name = name;
		this.price = price;
		this.setDiscount(discout);
		this.type_name = type_name;
		this.description = description;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the price
	 */
	public double getPrice() {
		return price;
	}

	/**
	 * @param price the price to set
	 */
	public void setPrice(double price) {
		this.price = price;
	}

	/**
	 * @param discount the discount to set
	 */
	public void setDiscount(double discount) {
		this.discount = discount;
	}

	/**
	 * @return the discount
	 */
	public double getDiscount() {
		return discount;
	}

	/**
	 * @return the type_name
	 */
	public String getType_name() {
		return type_name;
	}

	/**
	 * @param type_name the type_name to set
	 */
	public void setType_name(String type_name) {
		this.type_name = type_name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	
}
